home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / stdio_.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  1.9 KB  |  69 lines

  1. /* Copyright (C) 1992, 1993, 1994, 1998 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: stdio_.h,v 1.2 2000/09/19 19:00:51 lpd Exp $ */
  20. /* Generic substitute for stdio.h */
  21.  
  22. #ifndef stdio__INCLUDED
  23. #  define stdio__INCLUDED
  24.  
  25. /*
  26.  * This is here primarily because we must include std.h before
  27.  * any file that includes sys/types.h.
  28.  */
  29. #include "std.h"
  30. #include <stdio.h>
  31.  
  32. #ifdef VMS
  33. /* VMS doesn't have the unlink system call.  Use delete instead. */
  34. #  ifdef __DECC
  35. #    include <unixio.h>
  36. #  endif
  37. #  define unlink(fname) delete(fname)
  38. #else
  39. /*
  40.  * Other systems may or may not declare unlink in stdio.h;
  41.  * if they do, the declaration will be compatible with this one.
  42.  */
  43. int unlink(P1(const char *));
  44.  
  45. #endif
  46.  
  47. /*
  48.  * Plan 9 has a system function called sclose, which interferes with the
  49.  * procedure defined in stream.h.  The following makes the system sclose
  50.  * inaccessible, but avoids the name clash.
  51.  */
  52. #ifdef Plan9
  53. #  undef sclose
  54. #  define sclose(s) Sclose(s)
  55. #endif
  56.  
  57. /* Patch a couple of things possibly missing from stdio.h. */
  58. #ifndef SEEK_SET
  59. #  define SEEK_SET 0
  60. #endif
  61. #ifndef SEEK_CUR
  62. #  define SEEK_CUR 1
  63. #endif
  64. #ifndef SEEK_END
  65. #  define SEEK_END 2
  66. #endif
  67.  
  68. #endif /* stdio__INCLUDED */
  69.